<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<title>跳转页面！！！</title>
<script src="<%=request.getContextPath()%>/jquery/jquery.min.js"></script>
<script type="text/javascript">
	var time = 2;
	$("#layer").val(time)
	var url =  "<%=request.getContextPath()%>/cotol/wxroomconl.do"
	var renterId = "${renter_id}"
	var roomId = "${room_id}"
	var timestamp = "${timestamp}"
	var sign = "${sign}"
	//var time = "2019-02-26 09:10:21"
	// $('#jumpToRoomcontrol').attr('href',url);
	function returnUrlByTime() {
 
		window.setTimeout('returnUrlByTime()', 1000);
 
		time = time - 1;
 
		document.getElementById("layer").innerHTML = time;
	} 
		setTimeout(function(){
			//if(renterId != '' && roomId != '' && timestamp != '' && sign != ''){
				
				location.href = url +"?renter_id="+renterId+"&room_id="+roomId+"&timestamp="+timestamp+"&sign="+sign
			//}else{
			//	location.href = "http://www.baidu.com"
			//}
			
		},(time-1)*1000);
	//document.getElementById("c").innerHTML="<a href='"+url+"'>here</a>"
	
	/* function verifyRoomControlPage(renterId,roomId,timestamp,sign){
		alert(1)
		 $.ajax({//这个是ajax请求
             url:"/wx/verifyRoomControlPage.do?renterId="+renterId+"&roomId="+roomId+"&timestamp="+timestamp+"&sign="+sign,
              type:"POST",
              success:function(data){
                  
              }
          });
	} */
	
	
</script>
</head>
<body onload="returnUrlByTime()">
<h1>恭喜您，验证成功！正在跳转到客房控制页面。。。</h1>
<br/>
<h1 style="display: none;"><b><span id="layer">2</span>秒后，转入输入客房控制界面。</b></h1>
<!-- <span id="c" ><a href="">这里</a></span> -->
</body>
</html>
